<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>{:$page_info['title']}</title>
<link rel="icon" href="favicon.ico" type="image/ico">

<meta name="author" content="yinqi">
<link href="__STATIC__/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/materialdesignicons.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/style.min.css" rel="stylesheet">

<link href="__STATIC__/common/select2/select2.css" rel="stylesheet">
<link href="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">

<link href="__STATIC__/admin/css/cch.css" rel="stylesheet">
</head>
  
<body>
<div class="container-fluid p-t-15">
  
  <div class="row">
    <div class="col-lg-12">
      <div class="card">
        <header class="card-header">
            <div class="card-title">发票申请</div>
        </header>
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <tr>
                        <th>类型</th>
                        <td width="25%">{:$model->getTypeCn($data['type'])}</td>
                        <th>金额</th>
                        <td width="25%">{:$data['amount']}</td>
                        <th>状态</th>
                        <td width="25%">{:$model->getStatusCn($data['status'])}</td>
                    </tr>
                    <tr>
                        <th>描述</th>
                        <td colspan="999">{:$data['description']}</td>
                    </tr>
                    <tr>
                        <th>申请时间</th>
                        <td>{:timeDef($data['ctime'],'','Y-m-d H:i:s')}</td>
                        <th>处理管理员</th>
                        <td>{:$data['admin_name']}</td>
                        <th>处理时间</th>
                        <td>{:timeDef($data['utime'],'','Y-m-d H:i:s')}</td>
                    </tr>
                </table>
            </div>

        </div>
      </div>

      <div class="card">
        <header class="card-header">
            <div class="card-title">抬头信息</div>
        </header>
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <tr>
                        <th>抬头类型</th>
                        <td width="25%">{:$head['type_cn']}</td>
                        <th>发票抬头</th>
                        <td width="25%">{:$head['invoice_head']}</td>
                        <th>备注</th>
                        <td width="25%">{:$head['remark']}</td>
                    </tr>
                    <?php if ($head['head_type'] == 0): ?>
                        <tr>
                            <th>开户银行</th>
                            <td>{:$head['content']['bank_name']}</td>
                            <th>银行账号</th>
                            <td>{:$head['content']['bank_account']}</td>
                            <th>省市</th>
                            <td>{:$head['content']['province']} - {:$head['content']['city']}</td>
                        </tr>
                        <tr>
                            <th>注册场所地址</th>
                            <td>{:$head['content']['address']}</td>
                            <th>固定电话</th>
                            <td>{:$head['content']['tel']}</td>
                            <th>统一信用代码</th>
                            <td>{:$head['content']['tyxydm']}</td>
                        </tr>
                        <tr>
                            <th>附件</th>
                            <td colspan="999">
                                <?php foreach ($head['content']['attachment'] as $attachment): ?>
                                    <img src="__UPLOAD__/{:$attachment}" class="cch_thumbnail" />
                                <?php endforeach ?>
                            </td>
                        </tr>
                    <?php endif ?>
                </table>
            </div>

        </div>
      </div>

      <div class="card">
        <header class="card-header">
            <div class="card-title">发票地址</div>
        </header>
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <tr>
                        <th>收件人姓名</th>
                        <td width="25%">{:$address['truename']}</td>
                        <th>手机</th>
                        <td width="25%">{:$address['mobile']}</td>
                        <th>邮编</th>
                        <td width="25%">{:$address['zip_code']}</td>
                    </tr>
                    <tr>
                        <th>省市</th>
                        <td>{:$address['province']} - {:$address['city']}</td>
                        <th>详细地址</th>
                        <td colspan="999">{:$address['address']}</td>
                    </tr>
                </table>
            </div>

        </div>
      </div>

    </div>
    
  </div>
  
</div>

<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/main.min.js"></script>

<!-- 时间选择器 -->
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>

<script src="__STATIC__/common/select2/select2.min.js"></script><!-- 下拉搜索 -->

<script type="text/javascript" src="__STATIC__/admin/js/lyear-loading.js"></script><!-- loading -->
<script type="text/javascript" src="__STATIC__/admin/js/cch.js"></script>
</body>
</html>